package com.yootk.event.listener;

import com.yootk.event.YootkEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;

/**
 * 事件监听
 */
public class YootkEventListener implements ApplicationListener<YootkEvent> {
    private static final Logger LOGGER = LoggerFactory.getLogger(YootkEventListener.class);

    @Override
    public void onApplicationEvent(YootkEvent event) {
        LOGGER.info("事件源：{}", event.getSource());
    }
}
